<?php

namespace app\api\annotation;

#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::TARGET_CLASS)]
class LoginRequired
{
    public function __construct(
        public bool $required = true // 默认需要验证
    ) {}
}